package com.smz.service.impl;

import com.smz.dao.TTypeDAO;
import com.smz.dao.TTypeDAO;
import com.smz.entity.TType;
import com.smz.service.TTypeService;
import com.smz.service.TTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TTypeServiceImpl implements TTypeService {
    @Autowired
    TTypeDAO typeDAO;

    @Override
    public List<TType> findTypeByCompanyId(int id) {
        return typeDAO.selectTypeByCompanyId(id);
    }
}
